Package-level declarations

Types

Link copied to clipboard
internal data class Configuration(val tasks: List<String>, val options: List<String> = emptyList())

Record containing the configuration of a Test.

Link copied to clipboard
internal data class ExistingFile(val name: String, val findRegex: List<String> = emptyList(), val content: String? = null, val trim: Boolean = false, val permissions: List<Permission> = emptyList())

Represents the single test to execute.

Link copied to clipboard
internal data class Expectation(val fileToExists: List<ExistingFile> = emptyList(), val success: List<String> = emptyList(), val failure: List<String> = emptyList(), val outputContains: List<String> = emptyList(), val outputDoesntContain: List<String> = emptyList())

Represents the expectations of a Test.

Link copied to clipboard
internal class KotlinChecker(result: BuildResult) : TestkitChecker

Implementation of TestkitChecker that uses basic kotlin assertions.

Link copied to clipboard
internal enum Permission : Enum<Permission>

Represents the permission of a file.

Link copied to clipboard
internal data class Test(val description: String, val configuration: Configuration, val expectation: Expectation)

Represents the single test to execute.

Link copied to clipboard
internal abstract class TestkitChecker(result: BuildResult)

Entity able to check the assertions of the tests.

Link copied to clipboard
internal data class YamlTests(val tests: List<Test>)

Represents the yaml root.